const { request } = require('../utils/request')

/**
 * 套餐相关API
 */
const packageApi = {
  // 获取所有启用的套餐
  getAllEnabledPackages() {
    return request({
      url: '/haircut-package/enabled',
      method: 'GET'
    })
  },

  // 根据ID获取套餐详情
  getPackageById(id) {
    return request({
      url: `/haircut-package/${id}`,
      method: 'GET'
    })
  }
}

module.exports = packageApi 